class SimpleResult(object):
    def __init__(self, data, status=200, message="success"):
        self.result = data
        self.status = status
        self.message = message

    def get_dic_object(self):
        return self.__dict__

    @staticmethod
    def success_result(data=None, status=200, message="success"):
        return SimpleResult(data=data, status=status, message=message)

    @staticmethod
    def error_result(data=None, message="failure", status=400):
        return SimpleResult(data=data, status=status, message=message)